import { handleActions } from "redux-actions";
import { ADD_TYPES } from "../types.js"


export const addType = handleActions({
    [ADD_TYPES]:  (state,{payload}) => {
        console.log(state)
        return payload.newType
    }
},"豆瓜果茄")